package com.hdax.easybuy.api;

import com.hdax.easybuy.entity.ProductCategory;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;
@RequestMapping("/providerProductCategory")
@FeignClient(value = "easybuy-database-provider")
public interface ProductCategoryServiceClient {
    @RequestMapping("/queryCategoryAll")
    //@ResponseBody
    public List<ProductCategory> queryCategoryAll();
    //根据父id查询所有的类别
    @RequestMapping("/queryByParentId/{id}")
    public List<ProductCategory> queryAllProductCategory(@PathVariable("id") int id);
}
